package br.edu.unipampa.jogotabuleiroroma;

import br.edu.unipampa.jogotabuleiroroma.util.MensagemUtil;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class DashBoardActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dashboard);
	}

	public void criarJogo(View view) {
		Intent i = new Intent(DashBoardActivity.this, CriarJogoActivity.class);
		startActivity(i);
	}

	public void entrarJogo(View view) {
		Intent i = new Intent(DashBoardActivity.this, EntrarJogoActivity.class);
		startActivity(i);
	}

	public void sair(View view) {
		MensagemUtil.addMsgConfirm(DashBoardActivity.this,
				getString(R.string.lbl_sair), getString(R.string.msg_logout),
				R.drawable.logout, new OnClickListener() {

					@Override
					public void onClick(DialogInterface dialog, int which) {
						finish();
					}
				});
	}
}
